﻿using MiniErp.Entity.DataStreams.DOs.AssetManagement;
using MiniErp.Repository.BaseRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Repository.MysqlRepository.IRepository.AssetManagement
{
    /// <summary>
    /// 资产修改记录仓储接口
    /// </summary>
    public interface IAssetModificationRecordRepository : IBaseRepository<AssetModificationRecord>
    {
        /// <summary>
        /// 查询指定时间段的资产修改记录 //分页
        /// </summary>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="Page">页码</param>
        /// <param name="num">每页条数</param>
        /// <returns></returns>
        Task<List<AssetModificationRecord>> GetAllRecordAsync(DateTime startTime, DateTime endTime, int Page, int num);


        /// <summary>
        /// 模糊定时间段的查询符合条件的资产修改记录  //分页【】
        /// </summary>
        /// <param name="value">模糊查询值</param>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="Page">页码</param>
        /// <param name="num">每页条数</param>
        /// <returns></returns>
        Task<List<AssetModificationRecord>> GetFuzzyRecordAsync(string value, DateTime startTime, DateTime endTime, int Page, int num);
    }
}
